package coffeenc.mall.admin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Email;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 管理员用户数据模型
 */
@ApiModel(value = "UmsAdmin",description = "用户注册返回模型")
public class UmsAdmin implements Serializable {

    @ApiModelProperty(value = "数据库记录ID")
    private Long id;
    @ApiModelProperty(value = "登录密码")
    private String password;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "图标")
    private String icon;
    @Email
    @ApiModelProperty(value = "电子邮箱地址")
    private String email;
    @ApiModelProperty(value = "昵称")
    private String nickname;
    @ApiModelProperty(value = "备注信息")
    private String note;
    @ApiModelProperty(value = "账号创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "最后登录时间")
    private LocalDateTime loginTime;
    @ApiModelProperty(value = "账号启动状态，0->禁用；1->启用")
    private Integer status;

    /**
     * Getter and Setter
     */

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

}
